﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Optimization;
using System.Web.Routing;
using Autofac;
using Cnm.Core.Configuration;
using Cnm.Core.Domain.Localization;
using Cnm.Core.Infrastructure;
using Cnm.Mvc.Web.Infrastructure;
using Cnm.Servicers.Configuration;
using Cnm.Servicers.Localization;
using Autofac.Integration.Mvc;
using WebGrease;

namespace Cnm.Mvc.Web
{
    public class MvcApplication : System.Web.HttpApplication
    {
        protected void Application_Start()
        {
            //initialize engine context
            EngineContext.Initialize(false);

            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            AutoMapperWebConfiguration.ConfigureUserMapping();
        }
    }
}
